package com.example.administrator.social.model;

/**
 * Created by Administrator on 2018/9/11 0011.
 */
public class CharText {
    public static final int CONTENT_TYPE = 1;//表示文本类型
    public static final int CONTENT_TYPE_SEND = 1;//发送
    public static final int CONTENT_TYPE_RECEIVER = 0;//接受
    private String content;
    private String time;
    private int isSendSuccess;
    private int charType;
    private String headerImage;
    private int flag ;
    private boolean isRead;

    public CharText() {
    }

    public CharText(String content, String time, int isSendSuccess, int charType, String headerImage, int flag, boolean isRead) {
        this.content = content;
        this.time = time;
        this.isSendSuccess = isSendSuccess;
        this.charType = charType;
        this.headerImage = headerImage;
        this.flag = flag;
        this.isRead = isRead;
    }

    public int getIsSendSuccess() {
        return isSendSuccess;
    }

    public boolean isRead() {
        return isRead;
    }

    public void setRead(boolean read) {
        isRead = read;
    }

    public static int getContentType() {
        return CONTENT_TYPE;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public int isSendSuccess() {
        return isSendSuccess;
    }

    public void setIsSendSuccess(int isSendSuccess) {
        this.isSendSuccess = isSendSuccess;
    }

    public int getCharType() {
        return charType;
    }

    public void setCharType(int charType) {
        this.charType = charType;
    }

    public String getHeaderImage() {
        return headerImage;
    }

    public void setHeaderImage(String headerImage) {
        this.headerImage = headerImage;
    }

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    @Override
    public String toString() {
        return "CharText{" +
                "content='" + content + '\'' +
                ", time='" + time + '\'' +
                ", isSendSuccess=" + isSendSuccess +
                ", charType=" + charType +
                ", headerImage='" + headerImage + '\'' +
                ", flag=" + flag +
                ", isRead=" + isRead +
                '}';
    }
}
